<?php
class DBException extends Exception {
	const ERROR_UNKNOWN = 0;
	const ERROR_CONNECT = 1;
	const ERROR_SETTING_CHARSET = 2;
	const ERROR_TRANSACTION = 3;
	const ERROR_PREPARING =4;
	const ERROR_QUERYING = 5;
	const ERROR_BIND = 6;
	const ERROR_EXECUTE = 7;
	const ERROR_NO_SUCH_MODE = 8;
	const ERROR_NO_RESULTSET = 9;
	const ERROR_NEXT_ID = 10;
	const ERROR_CREATE_SEQ_TABLE = 11;
	
	public function __construct($message, $code=0) {
		parent::__construct($message, $code);
	}
}
?>